package com.lottery.material.dao.portal.competition;

import com.lottery.material.dao.base.BaseDao;
import com.lottery.material.entity.article.CompetitionInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author:houjie
 * @Description: 赛事
 * @Date:Create in 2019/4/10 14:32
 */
@Repository
public interface CompetitionInfoDao extends BaseDao<CompetitionInfo,Integer> {
    /**
    * @Author: houjie
    * @Description: 根据赛事类型及赛事状态获取赛事列表
    * @Date: 2019/4/10 14:37
    */
    List<CompetitionInfo> findAllByCompetitionTypeAndState(Integer competitionType,Integer state);


    /**
     * @Author: houjie
     * @Description: 根据赛事类型及赛事编号查询比赛
     * @Date: 2019/4/10 16:03
     */
    CompetitionInfo findByCompetitionTypeAndOpenId(Integer competitionType,String openId);
}
